/*
 * Copyright (C), 2015-2019
 * FileName: PointHiService
 * Author:   zhao
 * Date:     2019/4/20 22:01
 * Description: feign请求hi接口
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.lizhaoblog.scl.pro005hystrix.service;

import com.lizhaoblog.scl.pro005hystrix.hystric.PointHiServiceHystric;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 〈一句话功能简述〉<br>
 * 〈feign请求hi接口〉
 *
 * @author zhao
 * @date 2019/4/20 22:01
 * @since 1.0.0
 */
@FeignClient(value = "service-hi",fallback = PointHiServiceHystric.class)
public interface PointHiService {
    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}